package com.ruoyi.ybUpload.service.tableCode.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ybUpload.mapper.InterfaceRecordsMapper;
import com.ruoyi.ybUpload.domain.tableCode.InterfaceRecords;
import com.ruoyi.ybUpload.service.tableCode.IInterfaceRecordsService;

/**
 * 接口请求接收参数记录Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-22
 */
@Service
public class InterfaceRecordsServiceImpl implements IInterfaceRecordsService
{
    @Autowired
    private InterfaceRecordsMapper interfaceRecordsMapper;

    /**
     * 查询接口请求接收参数记录
     *
     * @param id 接口请求接收参数记录主键
     * @return 接口请求接收参数记录
     */
    @Override
    public InterfaceRecords selectInterfaceRecordsById(Long id)
    {
        return interfaceRecordsMapper.selectInterfaceRecordsById(id);
    }

    /**
     * 查询接口请求接收参数记录列表
     *
     * @param interfaceRecords 接口请求接收参数记录
     * @return 接口请求接收参数记录
     */
    @Override
    public List<InterfaceRecords> selectInterfaceRecordsList(InterfaceRecords interfaceRecords)
    {
        return interfaceRecordsMapper.selectInterfaceRecordsList(interfaceRecords);
    }

    /**
     * 新增接口请求接收参数记录
     *
     * @param interfaceRecords 接口请求接收参数记录
     * @return 结果
     */
    @Override
    public int insertInterfaceRecords(InterfaceRecords interfaceRecords)
    {
        return interfaceRecordsMapper.insertInterfaceRecords(interfaceRecords);
    }

    /**
     * 修改接口请求接收参数记录
     *
     * @param interfaceRecords 接口请求接收参数记录
     * @return 结果
     */
    @Override
    public int updateInterfaceRecords(InterfaceRecords interfaceRecords)
    {
        return interfaceRecordsMapper.updateInterfaceRecords(interfaceRecords);
    }

    /**
     * 批量删除接口请求接收参数记录
     *
     * @param ids 需要删除的接口请求接收参数记录主键
     * @return 结果
     */
    @Override
    public int deleteInterfaceRecordsByIds(Long[] ids)
    {
        return interfaceRecordsMapper.deleteInterfaceRecordsByIds(ids);
    }

    /**
     * 删除接口请求接收参数记录信息
     *
     * @param id 接口请求接收参数记录主键
     * @return 结果
     */
    @Override
    public int deleteInterfaceRecordsById(Long id)
    {
        return interfaceRecordsMapper.deleteInterfaceRecordsById(id);
    }
}
